package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
*  位置预订的实体类
**/
@Data
public class GridReservation implements Serializable {

    private static final long serialVersionUID = 1L;

    //ID
    private Integer id;
    //预约时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate time;
    //用户id
    private Integer userId;

    //————
    //使用方式
    private String type;
    //涉及卡id
    private Integer cardId;

    //座位id
    private Integer gridId;
    //横坐标
    private Integer x;
    //纵坐标
    private Integer y;
    //元素类型
    private Integer typeId;

    //元素类型名称
    private String name;
    //元素对应图片
    private String photo;
    //元素类型描述
    private String description;
}